package com.zxjbyte.yiyi.framework.common.domain.api;

import com.zxjbyte.yiyi.framework.common.enums.SortOrder;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 排序条件
 * @Author zhangxingjia
 * @Date 2023/3/15 17:00
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderBy {

    // 排序字段
    private String field;

    // 排序规则 [ASC: 正序, DESC: 倒序]
    private SortOrder sortOrder;
}
